From: Sam Hewitt Date: Thu, 26 Jun 2025 13:37:08 +0000 (-0230) Subject: style: Restore drawing the slight border on panel in light theme X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~19 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3bd6e9ea00967f104440ea34703ce3eb6632ee38;p=gnome-shell.git style: Restore drawing the slight border on panel in light theme Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8481 Part-of: --- diff --git a/data/theme/gnome-shell-sass/_colors.scss b/data/theme/gnome-shell-sass/_colors.scss index b3a52b6f6..f3fc06be1 100644 --- a/data/theme/gnome-shell-sass/_colors.scss +++ b/data/theme/gnome-shell-sass/_colors.scss @@ -23,6 +23,7 @@ $system_fg_color: $_base_color_light; // panel colors $panel_bg_color: if($variant == 'light', $_base_color_light, $dark_5); $panel_fg_color: if($variant == 'light', $_base_color_dark, $light_1); +$panel_border_color: if($variant == 'light', transparentize($_base_color_dark, .9), transparent); // card elements $card_bg_color: if($variant == 'light', $light_1, lighten($bg_color, 7%)); diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss index 2a29eee9d..4c74d717e 100644 --- a/data/theme/gnome-shell-sass/widgets/_panel.scss +++ b/data/theme/gnome-shell-sass/widgets/_panel.scss @@ -17,6 +17,11 @@ $panel_transition_duration: 250ms; // same as the overview transition duration @extend %numeric; transition-duration: $panel_transition_duration; + @if $variant == 'light' { + // uses half a pixel to compensate for box-shadow weirdness + box-shadow: inset 0 -0.5px 0 0 $panel_border_color; + } + // panel menus .panel-button { @include panel_button();